import request from "@/common/request.js";
//首页按钮列表
export function navListApi() {
  return request({
    method: "post",
    url: "/api/nav/lists",
  });
}

//功能导航详情
export function navDetailApi(body) {
  return request({
    method: "post",
    url: "/api/nav/detail",
    data: body || {},
  });
}

//banner详情
export function bannerDetailApi(body) {
  return request({
    method: "post",
    url: "/api/banner/detail",
    data: body || {},
  });
}


//新 ---------------

//资讯分类
export function newsCateApi(body) {
  return request({
    method: "post",
    url: "/api/news/all_cate",
    data: body || {},
  });
}

//资讯子分类
export function newsSonCateApi(body) {
  return request({
    method: "post",
    url: "/api/news/son_cate",
    data: body || {},
  });
}

//资讯列表
export function newsListApi(body) {
  return request({
    method: "post",
    url: "/api/news/lists",
    data: body || {},
  });
}

//资讯详情
export function newsDetailApi(body) {
  return request({
    method: "post",
    url: "/api/news/detail",
    data: body || {},
  });
}

//酒厂列表
export function factoryListApi(body) {
  return request({
    method: "post",
    url: "/api/shop/jiu_list",
    data: body || {},
  });
}

//酒厂详情
export function factoryDetailApi(body) {
  return request({
    method: "post",
    url: "/api/shop/jiu_detail",
    data: body || {},
  });
}

//终端店列表
export function storeListApi(body) {
  return request({
    method: "post",
    url: "/api/shop/yan_list",
    data: body || {},
  });
}

//终端店详情
export function storeDetailApi(body) {
  return request({
    method: "post",
    url: "/api/shop/yan_detail",
    data: body || {},
  });
}

//酒产品列表
export function productListApi(body) {
  return request({
    method: "post",
    url: "/api/goods/goods_list",
    data: body || {},
  });
}

//酒产品详情
export function productDetailApi(body) {
  return request({
    method: "post",
    url: "/api/goods/goods_detail",
    data: body || {},
  });
}

//轮播图
export function bannerListApi(body) {
  return request({
    method: "post",
    url: "/api/index/banner_list",
    data: body || {},
  });
}

//协会会员
export function communityUserListApi(body) {
  return request({
    method: "post",
    url: "/api/community/user_list",
    data: body || {},
  });
}

//酒厂收藏/取消收藏
export function jiu_collectApi(body) {
  return request({
    method: "post",
    url: "/api/collect/jiu_collect",
    data: body || {},
    loadingTip: "",
  });
}

//终端店收藏/取消收藏
export function yan_collectApi(body) {
  return request({
    method: "post",
    url: "/api/collect/yan_collect",
    data: body || {},
    loadingTip: "",
  });
}

//酒产品收藏/取消收藏
export function goods_collectApi(body) {
  return request({
    method: "post",
    url: "/api/goods/collect",
    data: body || {},
    loadingTip: "",
  });
}

//酒厂新闻公告
export function jiu_news_listApi(body) {
  return request({
    method: "post",
    url: "/api/jiu_news/lists",
    data: body || {},
  });
}

//酒厂新闻公告详情
export function jiu_news_detailApi(body) {
  return request({
    method: "post",
    url: "/api/jiu_news/detail",
    data: body || {},
  });
}
// 酒价列表
export function products(body) {
  return request({
    method: "get",
    url: "/products",
    data: body || {},
  });
}
export function pay(body) {
  return request({
    method: "get",
    url: "/api/quwei/pay",
    data: body || {},
  });
}
export function getProductList(body) {
  return request({
    method: "get",
    url: "/api/point/getProductList/",
    data: body || {},
  });
}
export function getProductDetails(body) {
  return request({
    method: "get",
    url: "/api/point/getProductDetails/",
    data: body || {},
  });
}
export function getProvince(body) {
  return request({
    method: "get",
    url: "/api/point/getProvince/",
    data: body || {},
  });
}
export function getCity(body) {
  return request({
    method: "get",
    url: "/api/point/getCity/",
    data: body || {},
  });
}
export function addAddr(body) {
  return request({
    method: "post",
    url: "/api/point/addAddr/",
    data: body || {},
  });
}
export function addrList(body) {
  return request({
    method: "get",
    url: "/api/point/addrList/",
    data: body || {},
  });
}

export function editAddr(body) {
  return request({
    method: "post",
    url: "/api/point/editAddr/",
    data: body || {},
  });
}
export function delAddr(body) {
  return request({
    method: "get",
    url: "/api/point/delAddr/",
    data: body || {},
  });
}
export function getWinePrice(body) {
  return request({
    method: "get",
    url: "/api/info/getWinePrice/",
    data: body || {},
  });
}
export function guideImage(body) {
  return request({
    method: "get",
    url: "/api/info/guideImage/",
    data: body || {},
  });
}
export function exchange(body) {
  return request({
    method: "post",
    url: "/api/point/exchange/",
    data: body || {},
  });
}
export function unPaidList(body) {
  return request({
    method: "get",
    url: "/api/point/unPaidList/",
    data: body || {},
  });
}

export function goPay(body) {
  return request({
    method: "post",
    url: "/api/point/goPay/",
    data: body || {},
  });
}
export function paidList(body) {
  return request({
    method: "get",
    url: "/api/point/paidList/",
    data: body || {},
  });
}
export function getDrinkAss(body) {
  return request({
    method: "get",
    url: "/api/info/getDrinkAss/",
    data: body || {},
  });
}
export function getOpenId(body) {
  return request({
    method: "get",
    url: "/api/point/getOpenId/",
    data: body || {},
  });
}
export function orderDetails(body) {
  return request({
    method: "get",
    url: "/api/point/orderDetails/",
    data: body || {},
  });
}
export function getAssDetails(body) {
  return request({
    method: "get",
    url: "/api/info/getAssDetails/",
    data: body || {},
  });
}

export function getAssList(body) {
  return request({
    method: "get",
    url: "/api/info/getAssList/",
    data: body || {},
  });
}




